<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Project</title>
	<%= yield(:keywords) || tag(:meta, :content=>"keywords", :name=>"keywords") %>
	<%= yield(:description) || tag(:meta, :content=>"description", :name=>"description") %>
	<title><%= yield(:title) || "Social web site" %></title>
	<%#= stylesheet_link_tag 'main.css', :media=> 'screen' %>
	<%= theme_stylesheet_link_tag 'main.css', :media=>'screen' %>
 	<!--[if lte IE 6]><link href="/stylesheets/ie.css" rel="stylesheet" type="text/css" /><![endif]-->
 	<%= javascript_include_tag  :defaults %>
 	<%#= javascript_include_merged :prodject %>
	<%= yield(:head)%>
</head>

<body>
<div id="main">
	<div id="lenta-head">
    	<div class="conteiner">
    		<div class="left">
                <div class="left-cont">
                	<div class="logo"><%= link_to image_tag("logo2.gif", :alt=>'logo'), root_path() %></div>
                	<%= render :partial=>"users/info", :object=>current_user if logged_in? %>
                  <%= render :partial=>"includes/form_search" %>
                </div>
            </div>
        </div>
        <div class="right">
        <% if logged_in? %>
      		<div class="userPanel">
             <ul>
              <li><%= link_to "лента", events_path %></li>
						 	<li><%= link_to "журнал", user_posts_path(current_user)%></li>              
						 	<li><%= link_to "инфо", user_path(:id=>current_user) %></li>
             </ul>
             <ul>
              <li><%= link_to "написать", new_user_post_path(:user_id=>current_user) %></li>
              <li><%= link_to "помощь", page_path(Page.help) unless Page.help.nil?%></li>
              <li><%= link_to "настройки", options_user_path(:id=>current_user) %></li>
             </ul>
          </div>
         <% end %>
        </div>
    </div>
    <div class="lenta-frame">
    	<%= yield %>
    </div>
</div>
<div class="lenta-bottom"></div>
<div class="popup-user-panel" style="position: absolute; top: 315px; left: 60%;display:none;">
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
            <strong>new_super_puper_user</strong>

            <a href="#">журнал</a> <a href="#">инфо</a><br /><a href="#">добавить в друзья</a>
        </td>
        <td><img src="images/userpic50.jpg" /></td>
      </tr>
    </table>
</div>
</body>
</html>


